//index.js
//获取应用实例
const app = getApp()

Page({
  data: {
    topsrc: '../../resources/timg001.png',
    src: '../../resources/yufang.jpg',
    doctors: ['A', 'B', 'A', 'B', 'A', 'B', 'A', 'B'],
    background: ['demo-text-1', 'demo-text-2', 'demo-text-3'],
    indicatorDots: true,
    vertical: false,
    autoplay: true,
    circular: true,
    interval: 5000,
    duration: 500,
    previousMargin: 0,
    nextMargin: 0
  },

  onLoad: function () {

  },

  //拨打电话
  makecall: function (e) {
    console.log('e', e)
    // var mobile = e.currentTarget.dataset.mobile
    var mobile = "18001161824";
    wx.makePhoneCall({
      phoneNumber: mobile
    })
  },
})
